package com.hhsj.dynamicui.model;


import com.google.gson.annotations.SerializedName;
import com.hhsj.dynamicui.model.base.JSONAble;

import java.io.Serializable;

/**
 * 常量
 */
public class ADModel implements Serializable, JSONAble {

    @SerializedName("ad_id")
    private String id;
    private String title;//常量类型 这个只有固定的几种 widget_layout
    private String title1;//常量名称 轮播图
    private String image;//主键id
    private String image1;//主键id
    private String action;//常量编码 banner_page

    @SerializedName("ad_desc")
    private String desc;//常量描述  普通翻页效果轮播图


    public ADModel() {
    }

    public ADModel(String id,String title, String title1, String image, String image1, String action, String desc) {
        this.id = id;
        this.title = title;
        this.title1 = title1;
        this.image = image;
        this.image1 = image1;
        this.action = action;
        this.desc = desc;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getTitle1() {
        return title1;
    }

    public void setTitle1(String title1) {
        this.title1 = title1;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }


    @Override
    public String toString() {
        return "ADModel{" +
                "title='" + title + '\'' +
                ", title1='" + title1 + '\'' +
                ", image='" + action + '\'' +
                ", url='" + action + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }

    @Override
    public String toJSONString() {
        return "{" +
                "\n    \"title\":\"" + title + "\"," +
                "\n    \"title1\":\"" + title1 + "\"," +
                "\n    \"image\":\"" + image + "\"," +
                "\n    \"url\":\"" + action + "\"," +
                "\n    \"desc\":\"" + desc + "\"" +
                "\n}";
    }
}
